package ooday04;

public class Fish extends Anima implements Swim{

    Fish(String name,int age,String color){
        super(name,age,color);
    }
    void eat() {
        System.out.println("名字是"+name+"年龄为"+age+"岁的"+color+"颜色的小鱼正在吃虾米");
    }

    public void Swim() {
        System.out.println("名字是"+name+"年龄为"+age+"岁的"+color+"颜色的小鱼正在游泳");
    }
}
